  var count = 0;
  var url = '';
  // 用来装视频列表
  const sohu = {
    parseVideoUrl(videoUrl, rollback){
      if(videoUrl !== null && videoUrl !== undefined && videoUrl !== '') {
        var videoRequestInfo = this.parseUrlParams(videoUrl);
        wx.request({
          url: videoRequestInfo.url,
          method: 'GET',
          data: videoRequestInfo.params,
          success: function(res) {
            rollback(res.data.servers[0].url);
          },
          fail: function(res) {
            rollback('');
          }
        });
      }
    },
    parseUrlParams: function (shUrl) {
      var baseUrl = shUrl.substring(0,shUrl.indexOf('?'));
      var params = shUrl.substring(shUrl.indexOf('?'),shUrl.length - 1).replace('?','"').replace(RegExp("&", "g"),'","').replace(RegExp("=", "g"),'":"');
      var paramsObj = JSON.parse('{' + params + '"}');
      var requestObj = {
        url: baseUrl,
        params: paramsObj
      };
      return requestObj;
    }
  };
module.exports = sohu;